package com.liu.mybatisplus.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.liu.mybatisplus.domain.Device;
import com.liu.mybatisplus.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *
 */
@RestController
@RequestMapping("/common")
public class DeviceController {
    @Autowired
    private DeviceService deviceService;


    @PostMapping("/findList")
    public List<Device> findList() {
        QueryWrapper<Object> wrapper = new QueryWrapper<>();

        return deviceService.list();
    }

}
